Optimal. Leaf size=541 \[ \frac {(a+b \text {ArcSin}(c x)) \log \left (1-\frac {\sqrt {e} e^{i \text {ArcSin}(c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {(a+b \text {ArcSin}(c x)) \log \left (1+\frac {\sqrt {e} e^{i \text {ArcSin}(c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {(a+b \text {ArcSin}(c x)) \log \left (1-\frac {\sqrt {e} e^{i \text {ArcSin}(c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {(a+b \text {ArcSin}(c x)) \log \left (1+\frac {\sqrt {e} e^{i \text {ArcSin}(c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {i b \text {PolyLog}\left (2,-\frac {\sqrt {e} e^{i \text {ArcSin}(c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {i b \text {PolyLog}\left (2,\frac {\sqrt {e} e^{i \text {ArcSin}(c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {i b \text {PolyLog}\left (2,-\frac {\sqrt {e} e^{i \text {ArcSin}(c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {i b \text {PolyLog}\left (2,\frac {\sqrt {e} e^{i \text {ArcSin}(c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} \sqrt {e}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.53, antiderivative size = 541, normalized size of antiderivative = 1.00, number of steps
used = 18, number of rules used = 6, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {4757, 4825,
4617, 2221, 2317, 2438} \begin {gather*} \frac {(a+b \text {ArcSin}(c x)) \log \left (1-\frac {\sqrt {e} e^{i \text {ArcSin}(c x)}}{-\sqrt {c^2 d+e}+i c \sqrt {-d}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {(a+b \text {ArcSin}(c x)) \log \left (1+\frac {\sqrt {e} e^{i \text {ArcSin}(c x)}}{-\sqrt {c^2 d+e}+i c \sqrt {-d}}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {(a+b \text {ArcSin}(c x)) \log \left (1-\frac {\sqrt {e} e^{i \text {ArcSin}(c x)}}{\sqrt {c^2 d+e}+i c \sqrt {-d}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {(a+b \text {ArcSin}(c x)) \log \left (1+\frac {\sqrt {e} e^{i \text {ArcSin}(c x)}}{\sqrt {c^2 d+e}+i c \sqrt {-d}}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {i b \text {Li}_2\left (-\frac {\sqrt {e} e^{i \text {ArcSin}(c x)}}{i c \sqrt {-d}-\sqrt {d c^2+e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {i b \text {Li}_2\left (\frac {\sqrt {e} e^{i \text {ArcSin}(c x)}}{i c \sqrt {-d}-\sqrt {d c^2+e}}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {i b \text {Li}_2\left (-\frac {\sqrt {e} e^{i \text {ArcSin}(c x)}}{i \sqrt {-d} c+\sqrt {d c^2+e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {i b \text {Li}_2\left (\frac {\sqrt {e} e^{i \text {ArcSin}(c x)}}{i \sqrt {-d} c+\sqrt {d c^2+e}}\right )}{2 \sqrt {-d} \sqrt {e}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2221
Rule 2317
Rule 2438
Rule 4617
Rule 4757
Rule 4825
Rubi steps
\begin {align*} \int \frac {a+b \sin ^{-1}(c x)}{d+e x^2} \, dx &=\int \left (\frac {\sqrt {-d} \left (a+b \sin ^{-1}(c x)\right )}{2 d \left (\sqrt {-d}-\sqrt {e} x\right )}+\frac {\sqrt {-d} \left (a+b \sin ^{-1}(c x)\right )}{2 d \left (\sqrt {-d}+\sqrt {e} x\right )}\right ) \, dx\\ &=-\frac {\int \frac {a+b \sin ^{-1}(c x)}{\sqrt {-d}-\sqrt {e} x} \, dx}{2 \sqrt {-d}}-\frac {\int \frac {a+b \sin ^{-1}(c x)}{\sqrt {-d}+\sqrt {e} x} \, dx}{2 \sqrt {-d}}\\ &=-\frac {\text {Subst}\left (\int \frac {(a+b x) \cos (x)}{c \sqrt {-d}-\sqrt {e} \sin (x)} \, dx,x,\sin ^{-1}(c x)\right )}{2 \sqrt {-d}}-\frac {\text {Subst}\left (\int \frac {(a+b x) \cos (x)}{c \sqrt {-d}+\sqrt {e} \sin (x)} \, dx,x,\sin ^{-1}(c x)\right )}{2 \sqrt {-d}}\\ &=-\frac {i \text {Subst}\left (\int \frac {e^{i x} (a+b x)}{i c \sqrt {-d}-\sqrt {c^2 d+e}-\sqrt {e} e^{i x}} \, dx,x,\sin ^{-1}(c x)\right )}{2 \sqrt {-d}}-\frac {i \text {Subst}\left (\int \frac {e^{i x} (a+b x)}{i c \sqrt {-d}+\sqrt {c^2 d+e}-\sqrt {e} e^{i x}} \, dx,x,\sin ^{-1}(c x)\right )}{2 \sqrt {-d}}-\frac {i \text {Subst}\left (\int \frac {e^{i x} (a+b x)}{i c \sqrt {-d}-\sqrt {c^2 d+e}+\sqrt {e} e^{i x}} \, dx,x,\sin ^{-1}(c x)\right )}{2 \sqrt {-d}}-\frac {i \text {Subst}\left (\int \frac {e^{i x} (a+b x)}{i c \sqrt {-d}+\sqrt {c^2 d+e}+\sqrt {e} e^{i x}} \, dx,x,\sin ^{-1}(c x)\right )}{2 \sqrt {-d}}\\ &=\frac {\left (a+b \sin ^{-1}(c x)\right ) \log \left (1-\frac {\sqrt {e} e^{i \sin ^{-1}(c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {\left (a+b \sin ^{-1}(c x)\right ) \log \left (1+\frac {\sqrt {e} e^{i \sin ^{-1}(c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {\left (a+b \sin ^{-1}(c x)\right ) \log \left (1-\frac {\sqrt {e} e^{i \sin ^{-1}(c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {\left (a+b \sin ^{-1}(c x)\right ) \log \left (1+\frac {\sqrt {e} e^{i \sin ^{-1}(c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {b \text {Subst}\left (\int \log \left (1-\frac {\sqrt {e} e^{i x}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right ) \, dx,x,\sin ^{-1}(c x)\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {b \text {Subst}\left (\int \log \left (1+\frac {\sqrt {e} e^{i x}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right ) \, dx,x,\sin ^{-1}(c x)\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {b \text {Subst}\left (\int \log \left (1-\frac {\sqrt {e} e^{i x}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right ) \, dx,x,\sin ^{-1}(c x)\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {b \text {Subst}\left (\int \log \left (1+\frac {\sqrt {e} e^{i x}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right ) \, dx,x,\sin ^{-1}(c x)\right )}{2 \sqrt {-d} \sqrt {e}}\\ &=\frac {\left (a+b \sin ^{-1}(c x)\right ) \log \left (1-\frac {\sqrt {e} e^{i \sin ^{-1}(c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {\left (a+b \sin ^{-1}(c x)\right ) \log \left (1+\frac {\sqrt {e} e^{i \sin ^{-1}(c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {\left (a+b \sin ^{-1}(c x)\right ) \log \left (1-\frac {\sqrt {e} e^{i \sin ^{-1}(c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {\left (a+b \sin ^{-1}(c x)\right ) \log \left (1+\frac {\sqrt {e} e^{i \sin ^{-1}(c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {(i b) \text {Subst}\left (\int \frac {\log \left (1-\frac {\sqrt {e} x}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{x} \, dx,x,e^{i \sin ^{-1}(c x)}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {(i b) \text {Subst}\left (\int \frac {\log \left (1+\frac {\sqrt {e} x}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{x} \, dx,x,e^{i \sin ^{-1}(c x)}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {(i b) \text {Subst}\left (\int \frac {\log \left (1-\frac {\sqrt {e} x}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{x} \, dx,x,e^{i \sin ^{-1}(c x)}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {(i b) \text {Subst}\left (\int \frac {\log \left (1+\frac {\sqrt {e} x}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{x} \, dx,x,e^{i \sin ^{-1}(c x)}\right )}{2 \sqrt {-d} \sqrt {e}}\\ &=\frac {\left (a+b \sin ^{-1}(c x)\right ) \log \left (1-\frac {\sqrt {e} e^{i \sin ^{-1}(c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {\left (a+b \sin ^{-1}(c x)\right ) \log \left (1+\frac {\sqrt {e} e^{i \sin ^{-1}(c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {\left (a+b \sin ^{-1}(c x)\right ) \log \left (1-\frac {\sqrt {e} e^{i \sin ^{-1}(c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {\left (a+b \sin ^{-1}(c x)\right ) \log \left (1+\frac {\sqrt {e} e^{i \sin ^{-1}(c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {i b \text {Li}_2\left (-\frac {\sqrt {e} e^{i \sin ^{-1}(c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {i b \text {Li}_2\left (\frac {\sqrt {e} e^{i \sin ^{-1}(c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} \sqrt {e}}+\frac {i b \text {Li}_2\left (-\frac {\sqrt {e} e^{i \sin ^{-1}(c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} \sqrt {e}}-\frac {i b \text {Li}_2\left (\frac {\sqrt {e} e^{i \sin ^{-1}(c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d} \sqrt {e}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.30, size = 490, normalized size = 0.91 \begin {gather*} \frac {2 a \sqrt {-d} \text {ArcTan}\left (\frac {\sqrt {e} x}{\sqrt {d}}\right )-b \sqrt {d} \text {ArcSin}(c x) \log \left (1+\frac {\sqrt {e} e^{i \text {ArcSin}(c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )+b \sqrt {d} \text {ArcSin}(c x) \log \left (1+\frac {\sqrt {e} e^{i \text {ArcSin}(c x)}}{-i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )+b \sqrt {d} \text {ArcSin}(c x) \log \left (1-\frac {\sqrt {e} e^{i \text {ArcSin}(c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )-b \sqrt {d} \text {ArcSin}(c x) \log \left (1+\frac {\sqrt {e} e^{i \text {ArcSin}(c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )-i b \sqrt {d} \text {PolyLog}\left (2,\frac {\sqrt {e} e^{i \text {ArcSin}(c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )+i b \sqrt {d} \text {PolyLog}\left (2,\frac {\sqrt {e} e^{i \text {ArcSin}(c x)}}{-i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )+i b \sqrt {d} \text {PolyLog}\left (2,-\frac {\sqrt {e} e^{i \text {ArcSin}(c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )-i b \sqrt {d} \text {PolyLog}\left (2,\frac {\sqrt {e} e^{i \text {ArcSin}(c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 \sqrt {-d^2} \sqrt {e}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.14, size = 243, normalized size = 0.45
method | result | size |
derivativedivides | \(\frac {\frac {a c \arctan \left (\frac {e x}{\sqrt {d e}}\right )}{\sqrt {d e}}-\frac {b \,c^{2} \left (\munderset {\textit {\_R1} =\RootOf \left (e \,\textit {\_Z}^{4}+\left (-4 c^{2} d -2 e \right ) \textit {\_Z}^{2}+e \right )}{\sum }\frac {i \arcsin \left (c x \right ) \ln \left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )+\dilog \left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )}{\textit {\_R1} \left (-\textit {\_R1}^{2} e +2 c^{2} d +e \right )}\right )}{2}-\frac {b \,c^{2} \left (\munderset {\textit {\_R1} =\RootOf \left (e \,\textit {\_Z}^{4}+\left (-4 c^{2} d -2 e \right ) \textit {\_Z}^{2}+e \right )}{\sum }\frac {\textit {\_R1} \left (i \arcsin \left (c x \right ) \ln \left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )+\dilog \left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )\right )}{-\textit {\_R1}^{2} e +2 c^{2} d +e}\right )}{2}}{c}\) | \(243\) |
default | \(\frac {\frac {a c \arctan \left (\frac {e x}{\sqrt {d e}}\right )}{\sqrt {d e}}-\frac {b \,c^{2} \left (\munderset {\textit {\_R1} =\RootOf \left (e \,\textit {\_Z}^{4}+\left (-4 c^{2} d -2 e \right ) \textit {\_Z}^{2}+e \right )}{\sum }\frac {i \arcsin \left (c x \right ) \ln \left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )+\dilog \left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )}{\textit {\_R1} \left (-\textit {\_R1}^{2} e +2 c^{2} d +e \right )}\right )}{2}-\frac {b \,c^{2} \left (\munderset {\textit {\_R1} =\RootOf \left (e \,\textit {\_Z}^{4}+\left (-4 c^{2} d -2 e \right ) \textit {\_Z}^{2}+e \right )}{\sum }\frac {\textit {\_R1} \left (i \arcsin \left (c x \right ) \ln \left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )+\dilog \left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )\right )}{-\textit {\_R1}^{2} e +2 c^{2} d +e}\right )}{2}}{c}\) | \(243\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {a + b \operatorname {asin}{\left (c x \right )}}{d + e x^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {a+b\,\mathrm {asin}\left (c\,x\right )}{e\,x^2+d} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________